package group.rober.jeki.controller

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.servlet.ModelAndView

@Controller
@RequestMapping("/my")
class MyHomeController {

    @RequestMapping("/home")
    ModelAndView home() {
        return new ModelAndView("views/my/home");
    }
    @RequestMapping("/article-list")
    ModelAndView articleList() {
        Map<String,Object> vars = new HashMap<String,Object>();

        return new ModelAndView("views/my/article-list",vars);
    }
    @RequestMapping("/profile")
    ModelAndView profile() {
        Map<String,Object> vars = new HashMap<String,Object>();

        return new ModelAndView("views/my/profile",vars);
    }

}
